package com.hongshan.wallet.base

import android.databinding.ViewDataBinding
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * Copyright Qiandai Ltd.
 * Copyright (c) 2019
 * All rights reserved
 *
 * @project  : Wallet
 * @package  : com.example.wallet.core.main
 * @author   : Administrator
 * @data     : 2019/3/19
 * @email    : zhangxx@baihang-china.com
 */
class BaseFragmentPagerAdapter(fm: FragmentManager, private val fragments: Array<MyFragment<ViewDataBinding,out MyViewModel>>) : FragmentPagerAdapter(fm) {

    override fun getCount() = fragments.size

    override fun getItem(p0: Int) = fragments[p0]
}